/*
 * Dto class 
 * Created on 6 juin 2013 ( Time 15:03:32 )
 */
// This Bean has a basic Primary Key (not composite) 

package org.demo.employe.bean;

import java.io.Serializable;

import javax.persistence.*;

import javax.validation.constraints.* ;
import org.hibernate.validator.constraints.* ;


import javax.persistence.*;

@Entity
@Table(name="employe", catalog="dbscoremanager" )
public class Employe implements Serializable
{
    private static final long serialVersionUID = 1L;

    //----------------------------------------------------------------------
    // ENTITY PRIMARY KEY ( BASED ON A SINGLE FIELD )
    //----------------------------------------------------------------------
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(name="idEmploye", nullable=false)
    private int        idemploye    ;


    //----------------------------------------------------------------------
    // ENTITY FIELDS 
    //----------------------------------------------------------------------    
    @Column(name="idPointage", nullable=false)
    private int        idpointage   ;
    @Column(name="idGroupe", nullable=false)
    private int        idgroupe     ;
    @Column(name="idRole", nullable=false)
    private int        idrole       ;
    @Column(name="matriculeEmploye", length=254)
    private String     matriculeemploye ;
    @Column(name="nomEmploye", length=254)
    private String     nomemploye   ;
    @Column(name="prenomEmploye", length=254)
    private String     prenomemploye ;
    @Column(name="cin", length=254)
    private String     cin          ;
    @Column(name="mailEmploye", length=254)
    private String     mailemploye  ;
    @Column(name="fonction", length=254)
    private String     fonction     ;
    @Column(name="login", length=254)
    private String     login        ;
    @Column(name="password", length=254)
    private String     password     ;

    //----------------------------------------------------------------------
    // ENTITY LINKS ( RELATIONSHIP )
    //----------------------------------------------------------------------

    //----------------------------------------------------------------------
    // CONSTRUCTOR(S)
    //----------------------------------------------------------------------
    public Employe()
    {
        super();
    }
    
    //----------------------------------------------------------------------
    // GETTER & SETTER FOR THE KEY FIELD
    //----------------------------------------------------------------------
    public void setIdemploye( int value )
    {
        this.idemploye = value;
    }
    public int getIdemploye()
    {
        return this.idemploye;
    }

    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR FIELDS
    //----------------------------------------------------------------------
    //--- DATABSE MAPPING : idPointage ( INT ) 
    public void setIdpointage( int value )
    {
        this.idpointage = value;
    }
    public int getIdpointage()
    {
        return this.idpointage;
    }

    //--- DATABSE MAPPING : idGroupe ( INT ) 
    public void setIdgroupe( int value )
    {
        this.idgroupe = value;
    }
    public int getIdgroupe()
    {
        return this.idgroupe;
    }

    //--- DATABSE MAPPING : idRole ( INT ) 
    public void setIdrole( int value )
    {
        this.idrole = value;
    }
    public int getIdrole()
    {
        return this.idrole;
    }

    //--- DATABSE MAPPING : matriculeEmploye ( VARCHAR ) 
    public void setMatriculeemploye( String value )
    {
        this.matriculeemploye = value;
    }
    public String getMatriculeemploye()
    {
        return this.matriculeemploye;
    }

    //--- DATABSE MAPPING : nomEmploye ( VARCHAR ) 
    public void setNomemploye( String value )
    {
        this.nomemploye = value;
    }
    public String getNomemploye()
    {
        return this.nomemploye;
    }

    //--- DATABSE MAPPING : prenomEmploye ( VARCHAR ) 
    public void setPrenomemploye( String value )
    {
        this.prenomemploye = value;
    }
    public String getPrenomemploye()
    {
        return this.prenomemploye;
    }

    //--- DATABSE MAPPING : cin ( VARCHAR ) 
    public void setCin( String value )
    {
        this.cin = value;
    }
    public String getCin()
    {
        return this.cin;
    }

    //--- DATABSE MAPPING : mailEmploye ( VARCHAR ) 
    public void setMailemploye( String value )
    {
        this.mailemploye = value;
    }
    public String getMailemploye()
    {
        return this.mailemploye;
    }

    //--- DATABSE MAPPING : fonction ( VARCHAR ) 
    public void setFonction( String value )
    {
        this.fonction = value;
    }
    public String getFonction()
    {
        return this.fonction;
    }

    //--- DATABSE MAPPING : login ( VARCHAR ) 
    public void setLogin( String value )
    {
        this.login = value;
    }
    public String getLogin()
    {
        return this.login;
    }

    //--- DATABSE MAPPING : password ( VARCHAR ) 
    public void setPassword( String value )
    {
        this.password = value;
    }
    public String getPassword()
    {
        return this.password;
    }


    
    //----------------------------------------------------------------------
    // GETTERS & SETTERS FOR LINKS
    //----------------------------------------------------------------------


}
